﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 图书类别
    /// </summary>
    public interface IBooksCategoryService
    {
        Task<int> AddBooksCategoryAsync(string bookType,int parentId);
        Task<int> EditBooksCategoryAsync(int id, string bookType, int parentId);
        Task<int> DeleteBooksCategoryAsync(int id);
        Task<List<BooksCategoryDto>> QueryBooksCategoryAllAsync();
        Task<BooksCategoryDto> QueryBooksCategoryByIdAsync(int id);
        Task<List<BooksCategoryDto>> QueryBooksCategoryByTypeNameAsync(string booksType);
    }
}
